package com.zheng.springcloud;

import com.netflix.loadbalancer.ZoneAvoidanceRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;

/**
 * @author lenovo
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "provider-dept",configuration = ZoneAvoidanceRule.class)
public class SpringCloudConsumerDept {
    public static void main(String[] args) {
        SpringApplication.run(SpringCloudConsumerDept.class,args);
    }
}
